package com.zzyl.service.impl;

import com.github.pagehelper.Page;
import com.zzyl.base.PageResponse;
import com.zzyl.entity.NursingProjectPagePram;
import com.zzyl.mapper.NursingPlanMapper;
import com.zzyl.service.NursingPlanService;
import com.zzyl.vo.NursingPlanVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description NursingPlanImpl
 * @Author Bafeii7
 * @Date 2025-05-09 21:04
 */
@Service
public class NursingPlanImpl implements NursingPlanService {
    @Autowired
    private NursingPlanMapper nursingPlanMapper;

    @Override
    public PageResponse<NursingPlanVo> listByPage(NursingProjectPagePram nursingProjectPagePram) {
        Page<NursingPlanVo> page = nursingPlanMapper.listByPage(nursingProjectPagePram);
        PageResponse<NursingPlanVo> pageResponse = PageResponse.of(page, NursingPlanVo.class);

        return pageResponse;


    }
}
